package com.qctpos.crm.common.contants;

/**
 *
 */
public enum ResultCode {
    // 1000业务
    SUCCESS(200,"成功"),
    FAIL(500,"失败"),
    PROMPT(1100, "提示信息" ),
    //2000 系统
    INVALID_TOKEN(2001, "无效Token"),
    API_NOT_EXIST(2002, "API方法不存在"),
    INVALID_REQUEST_ERROR(2003, "请求方式 {0} 错误 ! 请使用 {1} 方式");




    private final Integer code;

    private final String message;
    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Integer getCode() {
        return this.code;
    }
    public String getMessage() {
        return this.message;
    }
}
